package Demo01.Person;

public class Worker extends Person{
    private int wnum;
 
    public void work(){
        System.out.println("我爱工作");
    }
 
    @Override
    public void eat() {
        System.out.println(this.getName()+"吃饭");
    }
 
    @Override
    public void sleep() {
        System.out.println(this.getName()+"睡觉");
    }
}